HAL CORTEX Types

HAL CORTEX Types

group CORTEX_Exported_Types

Enums

enum hal_cortex_nvic_priority_group_t

CORTEX priority group enumeration definition

Values:

enumerator HAL_CORTEX_NVIC_PRIORITY_GROUP_0

0 bit for preemption priority, 4 bits for sub-priority

enumerator HAL_CORTEX_NVIC_PRIORITY_GROUP_1

1 bit for preemption priority, 3 bits for sub-priority

enumerator HAL_CORTEX_NVIC_PRIORITY_GROUP_2

2 bits for preemption priority, 2 bits for sub-priority

enumerator HAL_CORTEX_NVIC_PRIORITY_GROUP_3

3 bits for preemption priority, 1 bit for sub-priority

enumerator HAL_CORTEX_NVIC_PRIORITY_GROUP_4

4 bits for preemption priority, 0 bit for sub-priority

enum hal_cortex_nvic_preemp_priority_t

CORTEX preemption priority enumeration definition

Values:

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_0

NVIC preemption priority 0

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_1

NVIC preemption priority 1

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_2

NVIC preemption priority 2

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_3

NVIC preemption priority 3

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_4

NVIC preemption priority 4

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_5

NVIC preemption priority 5

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_6

NVIC preemption priority 6

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_7

NVIC preemption priority 7

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_8

NVIC preemption priority 8

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_9

NVIC preemption priority 9

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_10

NVIC preemption priority 10

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_11

NVIC preemption priority 11

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_12

NVIC preemption priority 12

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_13

NVIC preemption priority 13

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_14

NVIC preemption priority 14

enumerator HAL_CORTEX_NVIC_PREEMP_PRIORITY_15

NVIC preemption priority 15

enum hal_cortex_nvic_sub_priority_t

CORTEX sub-priority enumeration definition

Values:

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_0

NVIC sub-priority 0

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_1

NVIC sub-priority 1

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_2

NVIC sub-priority 2

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_3

NVIC sub-priority 3

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_4

NVIC sub-priority 4

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_5

NVIC sub-priority 5

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_6

NVIC sub-priority 6

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_7

NVIC sub-priority 7

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_8

NVIC sub-priority 8

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_9

NVIC sub-priority 9

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_10

NVIC sub-priority 10

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_11

NVIC sub-priority 11

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_12

NVIC sub-priority 12

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_13

NVIC sub-priority 13

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_14

NVIC sub-priority 14

enumerator HAL_CORTEX_NVIC_SUB_PRIORITY_15

NVIC sub-priority 15

enum hal_cortex_nvic_irq_status_t

CORTEX NVIC IRQ status enumeration definition

Values:

enumerator HAL_CORTEX_NVIC_IRQ_DISABLED

NVIC IRQ disabled

enumerator HAL_CORTEX_NVIC_IRQ_ENABLED

NVIC IRQ enabled

enum hal_cortex_nvic_irq_active_status_t

CORTEX NVIC IRQ active status enumeration definition

Values:

enumerator HAL_CORTEX_NVIC_IRQ_NOT_ACTIVE

NVIC IRQ not active

enumerator HAL_CORTEX_NVIC_IRQ_ACTIVE

NVIC IRQ active

enum hal_cortex_nvic_irq_pending_status_t

CORTEX NVIC IRQ pending status enumeration definition

Values:

enumerator HAL_CORTEX_NVIC_IRQ_NOT_PENDING

NVIC IRQ not pending

enumerator HAL_CORTEX_NVIC_IRQ_PENDING

NVIC IRQ pending

enum hal_cortex_systick_clk_src_t

CORTEX SysTick clock source enumeration definition

Values:

enumerator HAL_CORTEX_SYSTICK_CLKSOURCE_INTERNAL

Internal clock selected as SysTick clock source

enumerator HAL_CORTEX_SYSTICK_CLKSOURCE_EXTERNAL

External clock selected as SysTick clock source

enum hal_cortex_mpu_unmapped_addr_fault_t

CORTEX MPU unmapped address fault enumeration definition

Values:

enumerator HAL_CORTEX_MPU_ACCESS_FAULT_ALL

All accesses to unmapped addresses result in faults

enumerator HAL_CORTEX_MPU_ACCESS_FAULT_ONLY_PRIV

Enables the default memory map for privileged code

enum hal_cortex_mpu_hardfault_nmi_state_t

CORTEX MPU HardFault NMI status enumeration definition

Values:

enumerator HAL_CORTEX_MPU_HARDFAULT_NMI_DISABLE

HardFault and NMI handlers bypass MPU configuration as if MPU is disabled

enumerator HAL_CORTEX_MPU_HARDFAULT_NMI_ENABLE

MPU access rules apply to HardFault and NMI handlers

enum hal_cortex_mpu_mem_attr_idx_t

CORTEX MPU memory attributes index enumeration definition

Values:

enumerator HAL_CORTEX_MPU_MEM_ATTR_0

MPU memory attributes index 0

enumerator HAL_CORTEX_MPU_MEM_ATTR_1

MPU memory attributes index 1

enumerator HAL_CORTEX_MPU_MEM_ATTR_2

MPU memory attributes index 2

enumerator HAL_CORTEX_MPU_MEM_ATTR_3

MPU memory attributes index 3

enumerator HAL_CORTEX_MPU_MEM_ATTR_4

MPU memory attributes index 4

enumerator HAL_CORTEX_MPU_MEM_ATTR_5

MPU memory attributes index 5

enumerator HAL_CORTEX_MPU_MEM_ATTR_6

MPU memory attributes index 6

enumerator HAL_CORTEX_MPU_MEM_ATTR_7

MPU memory attributes index 7

enum hal_cortex_mpu_device_mem_attr_t

CORTEX MPU device attributes enumeration definition

Values:

enumerator HAL_CORTEX_MPU_DEVICE_MEM_NGNRNE

Device memory, noGather, noReorder, noEarly acknowledge

enumerator HAL_CORTEX_MPU_DEVICE_MEM_NGNRE

Device memory, noGather, noReorder, Early acknowledge

enumerator HAL_CORTEX_MPU_DEVICE_MEM_NGRE

Device memory, noGather, Reorder, Early acknowledge

enumerator HAL_CORTEX_MPU_DEVICE_MEM_GRE

Device memory, Gather, Reorder, Early acknowledge

enumerator HAL_CORTEX_MPU_DEVICE_MEM_INVALID

Returned when getting configuration of normal memory

enum hal_cortex_mpu_normal_mem_cache_attr_t

CORTEX MPU normal attributes enumeration definition

Values:

enumerator HAL_CORTEX_MPU_NORMAL_MEM_NCACHEABLE

Normal, non-cacheable

enumerator HAL_CORTEX_MPU_NORMAL_MEM_WT_NOA

Normal, write-through non-allocate non-transient

enumerator HAL_CORTEX_MPU_NORMAL_MEM_WT_WA

Normal, write-through write allocate non-transient

enumerator HAL_CORTEX_MPU_NORMAL_MEM_WT_RA

Normal, write-through read-allocate non-transient

enumerator HAL_CORTEX_MPU_NORMAL_MEM_WT_RWA

Normal, write-through read/write-allocate non-transient

enumerator HAL_CORTEX_MPU_NORMAL_MEM_WB_NOA

Normal, write-back non-allocate non-transient

enumerator HAL_CORTEX_MPU_NORMAL_MEM_WB_WA

Normal, write-back write allocate non-transient

enumerator HAL_CORTEX_MPU_NORMAL_MEM_WB_RA

Normal, write-back read-allocate non-transient

enumerator HAL_CORTEX_MPU_NORMAL_MEM_WB_RWA

Normal, write-back read/write-allocate non-transient

enumerator HAL_CORTEX_MPU_NORMAL_MEM_INVALID

Returned when getting configuration of device memory

enum hal_cortex_mpu_region_idx_t

CORTEX MPU region index enumeration definition

Values:

enumerator HAL_CORTEX_MPU_REGION_0

MPU region index 0

enumerator HAL_CORTEX_MPU_REGION_1

MPU region index 1

enumerator HAL_CORTEX_MPU_REGION_2

MPU region index 2

enumerator HAL_CORTEX_MPU_REGION_3

MPU region index 3

enumerator HAL_CORTEX_MPU_REGION_4

MPU region index 4

enumerator HAL_CORTEX_MPU_REGION_5

MPU region index 5

enumerator HAL_CORTEX_MPU_REGION_6

MPU region index 6

enumerator HAL_CORTEX_MPU_REGION_7

MPU region index 7

enum hal_cortex_mpu_region_access_attr_t

CORTEX MPU region access attributes enumeration definition

Values:

enumerator HAL_CORTEX_MPU_REGION_ONLY_PRIV_RW

Read/write by privileged code only

enumerator HAL_CORTEX_MPU_REGION_ALL_RW

Read/write by any privilege level

enumerator HAL_CORTEX_MPU_REGION_ONLY_PRIV_RO

Read only by privileged code only

enumerator HAL_CORTEX_MPU_REGION_ALL_RO

Read only by any privilege level

enum hal_cortex_mpu_execution_attr_t

CORTEX MPU execution access enumeration definition

Values:

enumerator HAL_CORTEX_MPU_EXECUTION_ATTR_DISABLE

MPU execution attribute disable

enumerator HAL_CORTEX_MPU_EXECUTION_ATTR_ENABLE

MPU execution attribute enable

enum hal_cortex_mpu_status_t

CORTEX MPU status enumeration definition

Values:

enumerator HAL_CORTEX_MPU_DISABLED

MPU disabled

enumerator HAL_CORTEX_MPU_ENABLED

MPU enabled

enum hal_cortex_mpu_region_status_t

CORTEX MPU region status enumeration definition

Values:

enumerator HAL_CORTEX_MPU_REGION_DISABLED

MPU region disabled

enumerator HAL_CORTEX_MPU_REGION_ENABLED

MPU region enabled

struct hal_cortex_mpu_region_config_t
#include <stm32c5xx_hal_cortex.h>

CORTEX MPU region configuration structure definition

Public Members

uint32_t base_addr

Base address of the region to protect

uint32_t limit_addr

Limit address of the region to protect

hal_cortex_mpu_region_access_attr_t access_attr

Region access permission

hal_cortex_mpu_execution_attr_t exec_attr

Execution attribute status

hal_cortex_mpu_mem_attr_idx_t attr_idx

Memory attributes index

struct hal_cortex_scb_cpuid_info_t
#include <stm32c5xx_hal_cortex.h>

CORTEX SCB CPU ID information structure definition

Public Members

uint32_t revision

Revision number identifier

uint32_t part_number

Cortex part number

uint32_t architecture

Architecture version

uint32_t variant

Variant

uint32_t implementer

Implementer identifier